<div class="box">
  <div class="box-header">
      
    <div class="row">       
        <div class="col-sm-8">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持用户名|昵称">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('attestationList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover table-striped">
      <thead>
      <tr>
          <th>用户名</th>
		  <th>商品</th>
          <th>身份证正面</th>
		  <th>身份证反面</th>
          <th>银行卡</th>
		  <th>驾驶证</th>
          <th>征信</th>
		  <th>流水</th>
		  <th>附加</th>
		  <th>状态</th>
		  <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.username}<br/>{$vo.name}</td>
				  <td>{$vo.title}</td>
                  <td>
                      {if !empty($vo['card_front'])}<a Onclick="imgcks('{$vo.card_front|default=''}','{$vo.id}')" target="_blank" data-lightbox="gallery" data-title="{$vo.card_front}" > <img src='{$vo.card_front}'  width="80" height="45"/></a>
					  <br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'card_front'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>{/if}</td>
				  <td>{if !empty($vo['card_back'])}<a Onclick="imgcks('{$vo.card_back|default=''}')" target="_blank" data-lightbox="gallery" data-title="{$vo.card_back}" > <img src='{$vo.card_back}'  width="80" height="45"/></a><br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'card_back'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>{/if}
                  </td>
				  <td>{if !empty($vo['bank'])}
						{volist name='vo.banklist' id='v'}
						<a Onclick="imgcks('{$v}','')" target="_blank" data-lightbox="gallery" data-title="{$v}" > <img src='{$v}'  width="50" height="50"/></a>
						{/volist}
						<br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'bank'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
					   {/if}
				  </td>
				  <td>{if !empty($vo['drive'])}
						{volist name='vo.drivelist' id='v'}
						<a Onclick="imgcks('{$v}','')" target="_blank" data-lightbox="gallery" data-title="{$v}" > <img src='{$v}'  width="50" height="50"/></a>
						{/volist}
						<br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'drive'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
					   {/if}
				  </td>
				  <td>{if !empty($vo['zx'])}
						{volist name='vo.zxlist' id='v'}
						<a Onclick="imgcks('{$v}','')" target="_blank" data-lightbox="gallery" data-title="{$v}" > <img src='{$v}'  width="50" height="50"/></a>
						{/volist}
						<br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'zx'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
					   {/if}
				  </td>
				  <td>{if !empty($vo['ls'])}
						{volist name='vo.lslist' id='v'}
						<a Onclick="imgcks('{$v}','')" target="_blank" data-lightbox="gallery" data-title="{$v}" > <img src='{$v}'  width="50" height="50"/></a>
						{/volist}
						<br/><ob_link><a class="btn confirm ajax-get" href="{:url('delPic', array('id' => $vo['id'],'type'=>'ls'))}" style="background-color:red"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
					   {/if}
				  </td>
				  <td>{if !empty($vo['add'])}
						{volist name='vo.addlist' id='v'}
						<a Onclick="imgcks('{$v}','')" target="_blank" data-lightbox="gallery" data-title="{$v}" > <img src='{$v}'  width="50" height="50"/></a>
						{/volist}
					   {/if}
				  </td>
				  <td>
					{if $vo.status == 0}<span style="color:red">待审核<span>{else}已通过{/if}  
                  </td>
                  <td>
						<ob_link><a class="btn ajax-get" href="{:url('attestationStat', array('id' => $vo['id'], 'stat' => (int)!$vo['status']))}">{if $vo.status==0}<i class="fa fa-edit"></i>通过{else/}<i class="fa fa-trash-o"></i>撤销{/if}</a>
						</ob_link>
						<!--<ob_link><a class="btn confirm ajax-get" href="{:url('delGoods', array('id' => $vo['id']))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>-->
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
      
    {include file="layout/batch_btn_group"/}
  </div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>
</div>